<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('推送任务')" />
    <th:block th:include="include :: select2-css"/>
</head>
<body class="gray-bg">




     <div class="container-div">
         <div class="row">

             <div class="col-sm-12 search-collapse">
                 <h3>账户余额：<span style="color: red">¥：[[*{accountAmount}]]</span></h3>
             </div>

             <div class="col-sm-12 search-collapse">
                 <form id="formId">
                     <div class="select-list">
                         <ul>
                             <li>
                                 <label>日期：</label>
                                 <input type="text" name="dateInfo"/>
                             </li>

                             <li>
                                 <label>操作类型：</label>
                                 <div class="col-sm-2">
                                     <select class="form-control" name="actionType">
                                         <option value="">所有</option>
                                         <option th:each="item:${actionTypeList}" th:value="${item.value}" th:text="${item.name}"></option>
                                     </select>
                                 </div>
                             </li>
                             <li>
                                 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                 <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                             </li>
                         </ul>
                     </div>
                 </form>
             </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
     <th:block th:include="include :: select2-js"/>
    <script th:inline="javascript">
        var prefix = ctx + "special/agency/account";

        $(function() {
            var options = {
                url: prefix + "/list",
                modalName: "推送任务",
                columns: [
                    {
                        field: 'idStr',
                        title: '流水ID'
                    },
                    // {
                    //     field: 'dateInfo',
                    //     title: '操作日期'
                    // },
                    {
                        field: 'billDateInfo',
                        title: '账单日期'
                    },
                    // {
                    //     field: 'accountId',
                    //     title: '账户ID'
                    // },
                    // {
                    //     field: 'infoId',
                    //     title: '渠道名称'
                    // },
                    // {
                    //     field: 'infoName',
                    //     title: '渠道编号'
                    // },
                    {
                        field: 'actionTypeStr',
                        title: '操作类型'
                    },
                    {
                        field: 'changeAmount',
                        title: '改变金额'
                    },
                    {
                        field: 'originAmount',
                        title: '原金额'
                    },
                    {
                        field: 'currentAmount',
                        title: '现金额'
                    },
                    // {
                    //     field: 'dataId',
                    //     title: '入账申请ID'
                    // },
                    // {
                    //     field: 'remarkInfo',
                    //     title: '备注'
                    // },
                    // {
                    //     field: 'mainAccountName',
                    //     title: ''
                    // },
                    // {
                    //     field: 'operatorId',
                    //     title: '操作人员ID'
                    // },
                    // {
                    //     field: 'operatorName',
                    //     title: '操作人员姓名'
                    // },
                    {
                        field: 'createTime',
                        title: '操作时间'
                    },
                ]
            };
            $.table.init(options);
        });

    </script>
</body>
</html>